@extends('admin/layout')
@section('title','商品评价列表')
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
    <h1>
        商品评价管理
        @if(session('error'))
            <div class="alert alert-danger">
                <li>{{ session('error') }}</li>
            </div>
        @endif
        @if(session('success'))
            <div class="alert alert-danger">
                <li>{{ session('success') }}</li>
            </div>
        @endif
        <small>商品列表</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="{{asset('admin/index')}}"><i class="fa fa-th"></i> 管理首页</a></li>
        <li><i class="fa fa-users"></i> 商品评价管理</li>
        <li class="active">评价列表</li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    评价列表
                </div><!-- /.box-header -->
                <div class="box-body">
                    <table id="example2" class="table table-bordered table-hover">
                        <thead>
                        <tr>
                            <th>会员ID</th>
                            <th>会员名</th>
                            <th>商品ID</th>
                            <th>商品名</th>
                            <th>评分</th>
                            <th>评论内容</th>
                            <th>评论时间</th>
                            <th>状态</th>
                        </tr>
                        </thead>
                        <tbody>
                        @foreach($data as $ad)
                            <tr>
                                <td>{{$ad->mem_id}}</td>
                                <td>{{$ad->name}}</td>
                                <td>{{$ad->pro_id}}</td>
                                <td>{{$ad->title}}</td>
                                <td>{{$ad->score}}</td>
                                <td>{{$ad->content}}</td>
                                <td>{{$ad->ptime}}</td>
                                <td>
                                    @if($ad->disabled==1)
                                        <a href="/admin/comment/{{$ad->mem_id}}/edit">显示</a>
                                    @elseif($ad->disabled==0)
                                        <a href="/admin/comment/{{$ad->mem_id}}/edit">屏蔽</a>
                                    @endif
                                </td>
                            </tr>
                        @endforeach
                        </tbody>
                    </table>
                </div><!-- /.box-body -->
            </div><!-- /.box -->


        </div><!-- /.col -->
    </div><!-- /.row -->
</section><!-- /.content -->
</div><!-- /.cont
</section>
@stop